all:
	make -C ../ex3/
	g++ -I../ex3/ -c test.cpp -o test.o
	g++ test.o ../ex3/liboutputdevice.a -lpthread
	
school: ./school/ex3_tester/tester.o
	make -C ../ex3/	
	g++ ./school/ex3_tester/tester.o -o ./tester -L../ex3/ -loutputdevice -lpthread 

./school/ex3_tester/tester.o:  ./school/ex3_tester/tester.cc
	g++ -c ./school/ex3_tester/tester.cc -o ./school/ex3_tester/tester.o -I./school/ex3_tester/cpp/

PHONY:
clean:
	make -C ../ex3/ clean
	rm -f ./test.o ./a.out ./school/ex3_tester/tester.o ./tester log.txt
